package com.ttctracker.classes;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;

public class Prediction extends ArrayList<Integer> implements Serializable{
	private static final long serialVersionUID = 1L;

	public Prediction(int i) {
		super(i);
	}

	@Override
	public boolean add(Integer object) {
		int size=this.size();
		super.add(object);
		if (size>0) {
			Collections.sort(this);
		}
		return true;
	}		
}
